package main

import (
	"fmt"

	"gitee.com/JackieCode/fabric-go-api/webServer"
	"github.com/spf13/viper"
)

func init() {
	viper.AddConfigPath("./config/")
	viper.SetConfigName("config")
	if err := viper.ReadInConfig(); err != nil {
		panic(fmt.Sprintf("ERROR: try to read config file failed, error:%v", err))
	}
}

func main() {

	webServer.New()
}
